package com.xuxin.baby.popup;

import android.content.Context;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.ScreenUtils;
import com.lxj.xpopup.animator.PopupAnimator;
import com.lxj.xpopup.core.CenterPopupView;
import com.xuxin.baby.R;

/**
 * Created by xu_xin
 * Created on 2020/11/30 0030
 */
public class SleepPopup extends CenterPopupView {

    public SleepPopup(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.popup_sleep;
    }

    @Override
    protected void onCreate() {

    }

    @Override
    protected int getMaxWidth() {
        return (int) (ScreenUtils.getScreenWidth() * 0.75);
    }

    @Override
    protected int getMaxHeight() {
        return (int) (ScreenUtils.getScreenWidth() * 0.6);
    }

    @Override
    protected PopupAnimator getPopupAnimator() {
        return super.getPopupAnimator();
    }

    protected int getPopupWidth() {
        return 0;
    }

    protected int getPopupHeight() {
        return 0;
    }
}